package com.itserver.utils;


import com.itserver.utils.exception.GlobalExceptionHandler;
import com.itserver.utils.interceptor.TokenInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class BeansConfig {
    @Bean
    public TokenInterceptor tokenInterceptor() {
        return new TokenInterceptor();
    }
    @Bean
    public GlobalExceptionHandler globalExceptionHandler(){
        return new GlobalExceptionHandler();
    }
    @Bean
    public UploadFile uploadFile(){
        return new UploadFile();
    }
    

}
